<template>
  <fieldset>
    <legend>其他组件2</legend>
    <button @click="openModal">点击显示模态框</button>
    <Modal :visable="isShow" @on-success="success" @on-cancel="cancel">
      <h1 slot="tip">警告</h1>
      <h3 slot="content">充值了100000</h3>
    </Modal>
  </fieldset>
</template>

<script>
import Modal from "../modal/index.vue";
import modalMix from "../mixuns/modal";
export default {
  mixins: [modalMix],
  components: {
    Modal,
  },
};
</script>
